Product Code Database
Example Keywords: resident evil -jelly $74
barcode-scavenger
   » » Wiki: Less-than Sign
Tag Wiki 'Less-than Sign'.
Tag

The less-than sign is a mathematical symbol that denotes an inequality between two values. The widely adopted form of two equal-length strokes connecting in an acute angle at the left, , has been found in documents dated as far back as the 1560s. In mathematical writing, the less-than sign is typically placed between two values being compared and signifies that the first number is less than the second number. Examples of typical usage include and .

Since the development of computer programming languages, the less-than sign and the greater-than sign have been repurposed for a range of uses and operations.


Computing
The less-than sign, , is an original character (hex 3C, decimal 60).


Programming
In , Lisp-family languages, and C-family languages (including Java and C++), comparison operator < means "less than".

In , operator .lt. means "less than".

In , operator .LT. means "less than"; later versions allow <.


Shell scripts
In (and many other shells), operator -lt means "less than". Less-than sign is used to redirect input from a file. Less-than plus ampersand () is used to redirect from a .


Double less-than sign
The double less-than sign, , may be used for an approximation of the much-less-than sign () or of the opening (). ASCII does not encode either of these signs, though they are both included in .

In Bash, , and Ruby, operator (where "EOF" is an arbitrary string, but commonly "EOF" denoting "end of file") is used to denote the beginning of a .

In C and C++, operator represents a binary left shift.

In the C++ Standard Library, operator , when applied on an output stream, acts as insertion operator and performs an output operation on the stream.

In Ruby, operator acts as append operator when used between an array and the value to be appended.

In the operator returns true if the left operand precedes the right operand in document order; otherwise it returns false.


Triple less-than sign
In , operator is used to denote the beginning of a statement (where OUTPUT is an arbitrary named variable.)

In Bash, is used as a "here string", where is expanded and supplied to the command on its standard input, similar to a heredoc.


Less-than sign with equals sign
The less-than sign with the equals sign, , may be used for an approximation of the less-than-or-equal-to sign, . ASCII does not have a less-than-or-equal-to sign, but defines it at code point .

In , Lisp-family languages, and C-family languages (including Java and C++), operator means "less than or equal to". In it is encoded as a single-byte code point token.

In , means "less than or equal to" (as distinct from the arrow ).

In , operators and both mean "less than or equal to".

In and Windows PowerShell, the operator means "less than or equal to".


Less-than sign with hyphen-minus
In the R programming language, the less-than sign is used in conjunction with a to create an arrow (), this can be used as the left assignment operator.


Spaceship operator
The less-than sign is used in the spaceship operator.


HTML
In (and SGML and ), the less-than sign is used at the beginning of tags. The less-than sign may be included with <. The less-than-or-equal-to sign, , may be included with ≤.


Unicode
provides various less than symbols:
U+003C
U+2264
U+2266
U+2268
U+226A
U+226E
U+2270
U+2272
U+2274
U+22D6
U+22D8
U+22DC
U+22E6
U+2343
U+2976
U+2977
U+2993
U+2996
U+29C0
U+2A79
U+2A7B
U+2A7D
U+2A7F
U+2A81
U+2A83
U+2A85
U+2A87
U+2A89
U+2A8D
U+2A95
U+2A97
U+2A99
U+2A9B
U+2A9D
U+2A9F
U+2AA1
U+2AA3
U+2AA6
U+2AA8
U+2AF7
U+2AF9
U+FE64
U+FF1C

The less-than sign may be seen for an approximation of the opening angle bracket, . True angle bracket characters, as required in linguistics notation, are expected in formal texts.


Mathematics
In an inequality, the less-than sign and greater-than sign always "point" to the smaller number. Put another way, the "jaws" (the wider section of the symbol) always direct to the larger number.

The less-than-sign is sometimes used to represent a , or . However, the symbol is often used when it would be confusing or not convenient to use . In mathematical writing using , the command is . The Unicode is .


See also
  • Inequality (mathematics)
  • Greater-than sign
  • Relational operator
  • Much-less-than sign

Page 1 of 1
1
Page 1 of 1
1

Account

Social:
Pages:  ..   .. 
Items:  .. 

Navigation

General: Atom Feed Atom Feed  .. 
Help:  ..   .. 
Category:  ..   .. 
Media:  ..   .. 
Posts:  ..   ..   .. 

Statistics

Page:  .. 
Summary:  .. 
1 Tags
10/10 Page Rank
5 Page Refs